import request from '@/utils/request'

//获取列表
export function GetModelList(data) {
    return request({
        url: '/ytjyadmin/VideoLib/GetModelList',
        method: 'post',
        data
    })
}

//新增
export function AddModel(data) {
    return request({
        url: '/ytjyadmin/VideoLib/AddModel',
        method: 'post',
        data
    })
}

//编辑
export function PostModel(data) {
    return request({
        url: '/ytjyadmin/VideoLib/PostModel',
        method: 'post',
        data
    })
}

//删除视频
export function DeleteModel(videoId) {
    return request({
        url: '/ytjyadmin/VideoLib/DeleteModel?videoId=' + videoId,
        method: 'get'
    })
}

//获取全部视频列表
export function GetAllVideoList() {
    return request({
        url: '/ytjyadmin/VideoLib/GetAllVideoList',
        method: 'get'
    })
}